<?php include "../public/header.php";?>
<?php include "../public/header_show.php";?>
<body id="xiangqingPage">
<div id="xiangqingBox">
    <div class="page-title">
        <div class="page-title-con">
            <span class="pageshowtitle">详情</span>
            <div class="page-title-opt-list">
                <?php include "../public_flow/flow_show_optbut.php";?>
                <button class="layui-btn layui-btn-sm btn-light marginr5 opt">
                    操作<i class="layui-icon layui-icon-down layui-font-12"></i>
                </button>
                <span id="page-close" class="page-close" onclick="layer_close()">×</span>
            </div>
        </div>
    </div>
    <div class="main-container">

        <div><?php include "../public_flow/flow_show_info.php";?></div>

        <div class="table-box tablenes">
            <div class="title">基本信息</div>
            <table class="layui-table">
                <tbody>

                <tr><td class="tt">工程名称</td><td id="enginname" class="colorlan tv"></td><td class="tt">施工合同金额(元)</td><td id="shimoney" class="tv"></td></tr>
                <tr><td class="tt">工程累计回款(元)</td><td id="incomeenginfee" class="tv"></td><td class="tt">累计工程回款支付(元)</td><td id="neifufee" class="tv"></td></tr>
                <tr><td class="tt">累计项目扣费(元)</td><td id="neikoufee" class="tv"></td><td class="tt">累计支付销售方(元)</td><td id="paymentenginfee" class="tv"></td></tr>
                <tr><td class="tt">工程回款余额(元)</td><td class="tv" id="gongyufee" colspan="3"></td></tr>

                <tr><td class="tt">申请付款金额(元)</td><td id="shenfee" class="tv"></td><td class="tt">款项摘要</td><td id="zhai" class="tv"></td></tr>
                <tr><td class="tt">转账手续费(元)</td><td id="shoufee" class="tv"></td><td class="tt">实际付款金额(元)</td><td id="money" class="tv"></td></tr>
                <tr><td class="tt">支付方式</td><td id="incdaotype" class="tv"></td><td class="tt">付款对象</td><td id="gonger" class="tv"></td></tr>
                <tr><td class="tt">账户账号</td><td id="banknum" class="tv"></td><td class="tt">开户行</td><td id="bankname" class="tv"></td></tr>

                <tr><td class="tt">备注</td><td class="tv" id="explain" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>

        <div><?php include "../public/upinfo_show.php";?></div>

        <div><?php include "../public_flow/flow_show_flowrelas.php";?></div>


        <div><?php include '../public_flow/flow_show_shenlog.php'?></div>
        <div><?php include '../public_flow/flow_show_talk.php'?></div>
        <div><?php include '../public/opt_browse.php'?></div>
    </div>
</div>
<script>
    var param_id = getQueryVariable('id') || 0;

    layui.use(['form', 'layer', "laytp",'element','dropdown','laypage','table','soulTable'], function() {
        var laypage = layui.laypage, table = layui.table, dropdown = layui.dropdown, form = layui.form, soulTable = layui.soulTable,element = layui.element;

        facade.ajax({url: ask_payment_neifu_show, data:{id: param_id}}).done(function(res){
            if (res.code === 2000) {
                var data = res.data.data;
                var engininfo = res.data.engininfo;

                if(engininfo){
                    $("#enginname").text(engininfo.name).click(function () {
                        openPage('../engin/show.php?id='+engininfo.id);
                    });
                    $("#shimoney").text(engininfo.shimoney);
                    $("#incomeenginfee").text(engininfo.incomeenginfee);
                    $("#neifufee").text(engininfo.neifufee);
                    $("#neikoufee").text(engininfo.neikoufee);
                    $("#paymentenginfee").text(engininfo.paymentenginfee);
                    $("#gongyufee").text(engininfo.gongyufee);
                }


                $("#shenfee").text(data.shenfee);
                $("#zhai").text(data.zhai);
                $("#shoufee").text(data.shoufee);
                $("#money").text(data.money);
                $("#incdaotype").text(data.incdaotype);
                $("#gonger").text(data.gonger);
                $("#banknum").text(data.banknum);
                $("#bankname").text(data.bankname);
                $("#explain").text(data.explain);



                public_flow_show_display(res.data.billinfo);
                public_upload_show_file('upload_files', res.data.files);
                render_from();
            }
        });

        public_get_readsandlog('payment_neifu', param_id);
    });



</script>
</body>
</html>




